Learn R Programming

NetLogoR (version 0.3.9)

[[: Subsetting for worldArray class

Description

These function similarly to [[ for RasterStack objects.

Usage

# S4 method for worldArray,ANY,ANY
[[(x, i)

# S4 method for worldArray,ANY,ANY [[(x, i) <- value

# S4 method for worldArray $(x, name)

Arguments

x

A worldArray object.

i

Index number or layer name specifying a subset of layer(s) from the worldArray.

value

A replacement worldMatrix layer for one of the current layers in the worldArray.

name

Layer name, normally without back ticks, unless has symbols.